﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WcfServer.Classes.Utility;
using WcfServer.Classes.Server;
using System.Net;
using System.Net.Sockets;
using WcfServer.Classes.Client;
using System.IO;

namespace Client
{
    /// <summary>
    /// Interaction logic for MainPage.xaml
    /// </summary>
    public partial class MainPage : Page
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.NavigationService.Navigate(new SignUp());
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            
        }

        
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
           
        }

        //private void Button_Click_4(object sender, RoutedEventArgs e)
        //{
        //    FileStream fs = new FileStream(PubXML.Text, FileMode.OpenOrCreate, FileAccess.ReadWrite);
        //    StreamWriter sw = new StreamWriter(fs);
        //    sw.WriteLine(KeyHandler.getKey_XML(SrcName.Text, false));
        //    sw.Close();
        //    fs.Close();
        //}

        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
           
        }

        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            KeyHandler.deleteKeyFromContainer(SrcName.Text);
        }
    }
}
